#include "../../include/Reactor/MyTask.h"
#include "../../include/Reactor/KeyRecommander.h"
#include "../../include/Reactor/WebPageSearcher.h"
#include "../../include/Reactor/ErrorTask.h"

MyTaskPtr MyTask::createKeyRecommandTask(const std::string &msg, const TcpConnectionPtr &con)
{
    return std::make_shared<KeyRecommandTask>(msg, con);
} 

MyTaskPtr MyTask::createWebPageSearchTask(const std::string &msg, const TcpConnectionPtr &con)
{
    return std::make_shared<WebPageSearchTask>(msg, con);
}

MyTaskPtr MyTask::createErrorTask(const std::string &msg, const TcpConnectionPtr &con)
{
    return std::make_shared<ErrorTask>(msg, con);
}
